Updated device config writer to test for url shortening after adding expansion codes.