Fix bug in movefiles script where it was trying to copy a directory without cp -r