Replaced all occurrences of os.name to now use core.PLATFORM.