cleanup file paths in script files