headless: Fixes to preprocessing of input file paths in the case when the input paths are urls (such as a dvid volume url)