#10071 bash detection for extensionless file

Hi, this is probably not the best solution. Please review my code and let me know :)