Create root-dir when it does not exists, fix #35.