Correctly detect path separator in pre-0.8 node