getAbsolutePath() moved into utils.c
pathIsBaseName() added to utils.c

The function is used to test that the specified string looks like just
as the basename of a path, without any absolute or relative path.
Only allow basenames for dbfilename and appendfilename.

This fixes issue #1094.