Improved detection of the current working directory (XPHIZGEMMPATH) for certain Linux distributions.
Ignore generated files.