Fix auto-completion scripts
Fix cygwin path (#598)