fix menubar to support directories

the affilated/index.html menubar was broken because it pointed to files
inside the affiliated directory - this fixes that.
Merge pull request #27 from eteq/fix-affiliated-menubar

fix affiliated.astropy.org menubar