POSIX (/bin/sh) compatability fixes
POSIX (/bin/sh) compatability fixes

Script fixed to account for the following differences between bash and the
POSIX shell (/bin/sh):
  - 'function' keyword not supported
  - 'declare' builtin unavailable
  - ${!var} style variable indirection not supported
  - '[[ ]]'-style conditional expressions not supported
  - 'export' builtin unavailable

silinternational/s3-expand