Added replace_vars function to BuildFile.