fix dir::creat bug with absolute path