s3cmd functions moved to lib file