encapsulate concatenating build file in a self-executing function