Fixed broken build
Add protection in no input file error