use file path of current active view in order to detect root directory