move BuildExtensions script into separate script file