DI: Automatically try to create tempDir
DI: if relative path for file is provided, try to prefix it with %sourceDir%