fix try_mkdir bug