Override dev/device parameter with the query string (bug 1060062)