Added code to avoid checking for .bc when the filename is too short.