Wrapper for useref to work with files