Updated plugin to use getenv and not getProperty