Fix the dqmgui backup to work with old version of castor; also do some cosmetic changes.