woah, mkdir() was broken; little fixes