Fixed error in deleting /usr/local!

Changed the way env variables are named