Fixed upload bug with EC2 directory