Fix for make profile in subdirs.