If --lofgile is relative, expand it into --root-dir.
Fix using TMPDIR from the environment when running from the binary image.