Make autotest work with recent mavlink

Fix the autotest script so that it can deal with the renaming of the waypoint to gpx script in latest mavlink (https://github.com/mavlink/mavlink/commit/7cefdc26d81f2282f560d3c90446a9c29c424222).