allow configurations to override the default mode when using mkdir()