Added support for creating directories with options.
Merge pull request #172 from hgraca/create_dir_with_options

Added support for creating directories with options.