Fix small bug with create directory.