added some extra stuff to create a full filepath from entries that dont have a full path while they are files