added etc/profile for env variables and path, and fixed a directory creation in the update script.