Fixes bug with -o

-o did not create directory after refactor.