Check if path_out is a valid directory.
Merge pull request #48 from sjewo/master

Check if path_out is a valid directory.