Fix war deployments
Fix war deployments

Because of wrong filenames for non salt:// files it could not deploy the war file properly.

Also, the logic to determine the version was a bit iffy so I have added a different approach of retrieving a version.

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt