Fix scripts failure when KRE is installed under Program Files