fix return code on file not found error