Fix the builder script to allow empty related extensions