Refactor and tidy up customizing gemInstallDir while keeping it in project.buildDir by default

See #28