bug fix on writing file
normalize pathes before insering into dictonaries