Check if path_out is a valid directory.