handle folder changes so we upload to the correct location