Support more platforms

In the current version, "linux" is hard coded even though the platform argument is supported at the command line. This PR corrects that.