avoid key error is not SHELL env var