Change local to use LOCAL_ENV constant. Fixes #1.