gitr now finds its top level before every command
fixed small bug in get_top_dir() which prevented it from working correctly.