Mac port changes

Added separate rif40/postgres password support
Fix shell slash escape issue