improve error message for functions that require an absoulte path

see:
 * https://dev.cfengine.com/issues/6877