Substitute build directories.