Fix dollar sign in password bug

When there is a dollar sign in password, it will be set wrongly (interpreted as environment variable). For example

```
echo "ALTER ROLE postgres ENCRYPTED PASSWORD 'MY_SUPER_$PWD';"
```

will become

```
ALTER ROLE postgres ENCRYPTED PASSWORD 'MY_SUPER_/path/to/pwd';
```