added in change of binary if altinstall

sourced from tjcravey