fix for environment variables not being handled properly for destination