platform.system() returned Darwin instead of darwin. Use lower case keys and platform.system().lower()