add directory to tags, and fix file name escape issue in lime