Added better error handling for not executable files