fix problem of running command line under cygwin 

cygwin is complaining about paths and it requires . as current path
additionally I fixed problem when JAVA_HOME has some spaces.

I made also conditional call of tput so it does not complain on cygwin when it is missing


It solves issue https://github.com/flyway/flyway/issues/562