firebird fixed.
realpath no more needed, thanks to @Androguide .