fix possibility to output to a file instead of a folder
v0.5.3