Move platform selection logic to it's own script.
Merge pull request #30 from ahmedcharles/travis

Move platform selection logic to its own script.