Use PATH_SEPARATOR

Not sure if you want this to run on windows, but if so, this will help.