Make sure sys.platform isn't required
Update darwin handler so it will fall back to the standard *nix method if Python isn't installed as a framework.