Added .cpp check to run script. Added executable file check to run script.