RR: added quotes to password export so its tolerant of wierd chars in passwords.
Fixed sed path delimiters issue.