GetEmitOutput function and testfiles

Yes; the argument is used in the if-clause when it can't find the relative path and try to get absolute path