Scala : Unsafe access to environment variables