Why only check these extensions? It's valid (and not uncommon) in *nix to have a scripts without extensions, so I think we'd want to check all file names.