add a way to silence path mismatch check, fix #2112