util, file_util: rename build_filename to build_db_filename.

Make it clear that this function is for building internal filenames.

Also accept NULL as first argument, and always use '/'.