Bug fixes in the setenv jtr built function