Fixed issue where mkdir was called with missing param.