Add modules path in build dir if --debug.
Also fix config.h location.