Checking cmake version, made build cleanup directory independant.