fixed evaluation of database path (cmd arg, env var, compile time or runtime directory)