added check for env path