ec2-build/s3-copy: fixed path truncation