Make it work with custom install locations; closes #10