Quick filter for edge cases like $path='/A///B///C' that isn't filtered correctly
Tests for #38, also fixed Windows path factory.