Warn when trying to deploy over the file:/// protocol,

... instead of failing silently.

Fixes #1650.

Not necessarily the most elegant place to catch the problem ... but it works for me, and from the POV of the user, it's way better then crashing silently.
Well there's a difference between displaying a message and exiting and letting the application throw an exception.