Try to auto-detect shell mode even if file does not end in a shell
extension.