Fix ubuntu post-install script redundancies.