BUG: bug for an input file in the current dir fixed, test added.