Fix issue of files being moved from outside of branch