Improved OSX compatibility of MAV wifi scripts.