Check if a file is executable