Remove getenv usage and add spec for the case
Dont replace parameter that cannot be found