Set the OutputDir to file dir if not specified with -o

[Finishes github issue #10]