Fix a warning on unused fchdir() returned value
Fix a warning on unused fchdir() returned value

This warning is produced on Ubuntu 19.04, whose relevant header file
defines the need to use the return value.

Instead of just prefixing it by (void), actually check for failure even
though there is no reasonable thing to do in such a case besides an
error message.

ampli/link-grammar,ampli/link-grammar,linas/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,opencog/link-grammar,opencog/link-grammar,opencog/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,linas/link-grammar,opencog/link-grammar,linas/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,linas/link-grammar,linas/link-grammar,ampli/link-grammar,ampli/link-grammar,ampli/link-grammar,ampli/link-grammar,opencog/link-grammar,linas/link-grammar,opencog/link-grammar