Fixed if condition for installation.