Do not create a directory for the output path if it is a file