Throw RuntimeErrors for invalid/missing extensions and when no files are given