GATEWAY-3372: Modified to use the connectdir property instead of the rep...

...o sym link to better support other platforms. Also incorporated changes to support whitespace in path.