Fixes the homepath and config command line args. This allows the command to be used even when the homepath is different from the default. Fixes #7730