fix Test-Path condition