Added function to identify platform and used it in bin/chrome