replace undefined environment variables with undefined

fixes #11