Fixed input file bug when passing in a directory vs a file

Fixed Github Issue #73