bugfix make_absolute_paths function. duplicate replacements when same static file referred more then once