improved install and relative path logic.