Couchbase-cli broken in 6.5.0-beta? (Actually, in the git development version)

./couchbase-cli File "/opt/couchbase/lib/python/couchbase-cli", line 3 D0=(cd “$(dirname “$0”)” && pwd)
^
SyntaxError: invalid syntax

It seems like the /opt/couchbase/lib/python/couchbase-cli contains a copy of the shell script, instead of a python script. How can I fix this?