allow configurations to override the default mode when using mkdir()
fixed copy/paste error
actually use the configured mode with dash
Optionally allow recordings to be segmented when started manually