make sure environment variables are not prefixed with separator, update #1437