Minor refine the installation code