Feature/8 add preinstall script support

closes #8