added dir check for the installed UG