Minor fixes to prevent error logs during selenium install script.