fixed a few bugs in the moveFile and master.sh