build: prevent empty extensions at source