adjust directory of S3 file