Corrected platform identification method, sanitising input and adding a default as well - Jason G