Properly escape path in cygwin bash check

Quick attempt at properly fixing #3304