Fixes synchronous env version lookup