Added directory upload feature for S3 module