changed the Preferences class to also take into account system properties (before it was considering only environment vars)