Fix directory creation with LWRP.