Update tree_menu_tags.py

Fix formatting of the url tag to support both django 1.2- and 1.3+