create directories: implement mkdir_p
Merge pull request #1000 from holomorph/xdg_base_dir_spec

create directories: implement mkdir_p