[WIP] Fixes for "deploy from Windows"

The changes necessary to get brooklyn-sample running on Windows. Must be started with "-Djava.io.tmpdir=C:/temp"


So the point you are trying to make is that it is worth having incorrect behaviour in corner cases in return for not caring what's the platform of the paths. The cases where the method won't work correctly are:

  * On Windows paths starting with slash (either forward or backward) or ~.
  * On UNIX paths starting with X:/

While I would prefer the technically correct approach of having the context of the platform, I also understand your view of striving for a simpler code-base. What worries me about it is that being an open source project the application will be used in ways we don't control and haven't anticipated and in environments we thought were impossible/improbable. This in turn will either create support burden for us or will just make bad impression and drive away users.

Having in mind the above, I will change the code to use a single method but still different from the original where the behaviour was determined by the OS running the app (`if (Os.isMicrosoftWindows()) {`).