Builds a BST when encountering a known directory with the intent of eventually having tab highlighting