Ignore CRLF '\r' thing
If you get errors like
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: eval: line 12: syntax error near unexpected token `$'{\r''
'ash: eval: line 12: `__add_sys_prefix_to_path() {
bash: $'\r': command not found
bash: $'\r': command not found
You need to:
export SHELLOPTS
set -o igncr