Update aimmake to use build_folder/middleware