This won't work on OSX or Windows because the paths are different, you should use the same methods we use in the client to access the configuration. Or do it by hand.