Fixing update script and gpx initscript