minor correction
added check to test if input/output files are executable (catches common errors)