strip out s3 bucket paths