Use 'path-separator' for splitting/joining environment variables

This more portable than current approach (using ':'), which leads to
errors in windows, since it uses ';' to separate entries in environment
variables