Change file path to file name in metadata objects

currently we wrote the whole path of a json file into helping data structures
now only the file name is saved therefore the name had to be changed
from file path to file name