Check for file before moving it in shell script. Make shell script executable.