Updated mkdir() with some helpers