New mkdir method needs to work with relative paths too
Updated the code to work with both old and new style node streams