fix error code exit on mkdir, use modx 2.3