refactored most usages of sys.platform in tasks.py into is_osx,linux,windows