change logic for setting rootname
change logic for setting rootname

dhomeier/astropy,mhvk/astropy,larrybradley/astropy,saimn/astropy,larrybradley/astropy,StuartLittlefair/astropy,mhvk/astropy,saimn/astropy,mhvk/astropy,dhomeier/astropy,mhvk/astropy,pllim/astropy,MSeifert04/astropy,aleksandr-bakanov/astropy,astropy/astropy,mhvk/astropy,astropy/astropy,pllim/astropy,dhomeier/astropy,saimn/astropy,lpsinger/astropy,MSeifert04/astropy,lpsinger/astropy,larrybradley/astropy,aleksandr-bakanov/astropy,stargaser/astropy,saimn/astropy,larrybradley/astropy,dhomeier/astropy,StuartLittlefair/astropy,aleksandr-bakanov/astropy,larrybradley/astropy,stargaser/astropy,StuartLittlefair/astropy,stargaser/astropy,saimn/astropy,StuartLittlefair/astropy,MSeifert04/astropy,dhomeier/astropy,pllim/astropy,stargaser/astropy,astropy/astropy,aleksandr-bakanov/astropy,lpsinger/astropy,StuartLittlefair/astropy,lpsinger/astropy,lpsinger/astropy,pllim/astropy,MSeifert04/astropy,astropy/astropy,pllim/astropy,astropy/astropy