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

Fix platform check to work with optional command-line arguments