Replace some of hard coded path

When possible, replace hard coded path with $buildDir, $rootDir, $projectDir

Facilitate integration in a multiproject build.