make IsRunningInPortableMode read the correct registry key