fixing install script for custom ports