Allow override of basedir in mongos and fix logrotate path problem