Fix the wrong bash if syntax for checking the existence of perl tool.