Only expand <sfile> in global scope; fixes #1