Fixed issue with single arg js mkDirSync. #467