fix finding file as path from input dir. fixes #262