fixed moving of source files so it also works on source files that have already been moved