fixes s3 absolute path issue