check to ensure the file is executable