Removed "wms only" option (since it's pretty redundant).
More robust bash parameter passing.