build: add proper extras_file support