Fixing an error when creating tmp folder for modules.