Code robustness increased for CLANG
Fix test for missing $PATH