Replace sys.platform with mozinfo.os checks (#25)
(cherry picked from commit 2cb7c0d19e8e7e990f2b41f8c739a8ea1f145165)