extract checkPath
fix nullability
initial WEB-7303 Add support for debugging with node-webkit