Fixed resurfaced setenv.sh bug. Some updates to PUT service.