Apply the same transformations to RTHOME as at the prompt, and generalize
Switch away from using $_, for clarity
Add the debian default install directory

This allows modules to install cleanly on Debian/Ubuntu-based rt4
installs with no prompting.