rake: remove shared condig, fix proxy detection using env variables