Fixed checking of regular file

bb.utils.which is intend to locate regular file only as it is written in comment