Build profile.d folder dynamically