Clean up code for listing s3 keys. Fix #14.