Automatically create the target directory if it doesn't exist.
Added and rephrased the related error messages accordingly.