Only match valid character separator in path resolution

This cause issues with Windows path where you have a drive name, e.g.
C:/etc

Also fixed tests to work on top of expected environement. Some where
running but weren't actually testing anything due to environement
mis-configuration.
Merge pull request #452 from SBoudrias/window-path

Only match valid character separator in path resolution