added -create-directories option for converting files to ensure that files are created properly