Replace shellcmd call with call to move_file