Generalize s3 unpacking to handle biodata and work directory retrieval