Another fix on temp_files service

We still find some "ERROR:  set-valued function called in context that
cannot accept a set" when pgsql_tmp doesn't exists, even on 9.2+.
Fix the query on both 9.0+ (to remove useless CTE) and 9.2+.
Bump version to 1.22b1