Reverts changes to platforms

- Renames targetPlatform to targetPlatforms
- If no platforms are targeted, this will return all platforms (not the
first defined as on master)