T2 running from wrong directory?

$ . $(dirname “$0”)/setup_instance.sh
dirname: unknown option – b
Try ‘dirname --help’ for more information.
-bash: /setup_instance.sh: No such file or directory

i pasted the script (setup_t2.sh) into cygwin. all was going well until this. it kind of hung up as if waiting for a response. was it waiting for the directory path? am i running it from the wrong directory? thx