Attached is a set of changes to pg_ctl that I have been using that fixes problems I have had with pg_ctl when the paths contains spaces.
thanks,--Barry