Probably need to restore the directory for the curl script to work