Clarify common code
Improve setting of CPPPATH and output folder