improve error message for functions that require an absoulte path, see:
 * https://dev.cfengine.com/issues/6877
fixed spelling error in ABSOLUTE and remove double strcmp test
Merge pull request #2068 from basvandervlies/readjson_improve_error_message

improve error message for functions that require an absoulte path