Bugfix in dir::create_path due to a flaw in mkdir