fixed bug with trying to call sys.platform