Fixed tests to run on Mono

@Praburaj 
No it won't. Why aren't you using the same logic with the PATH on mono?