Upgrade fixes: aws gem and error page generation

Upgrade fixes: aws gem and error page generation

https://code.google.com/p/otwarchive/issues/detail?id=3663