PEP8 fixes in astropy/config

Goes towards fixing #1133.

@eteq @iguananaut - please check that the slight code change I made for the Windows path is ok - this was too avoid a long line.