Fix platform check to work with optional command-line arguments
Merge pull request #375 from Icenium/totev/fix-deploy

Fix platform check to work with optional command-line arguments