script works for any installation directory