Temporary fix to make erd_depth work with longer filenames.