Fixing the ordering of the installation script