Make file locations work better from global install.

If you have done a global install (with composer), you want your mage config to be located based on the directory where you use the command, not on the directory where the command is stored.