Handle relative paths for output and work dirs
Create output directories as needed
Pad numbered output file names with zeroes