Add support for FS_chmod and setting environment variables in the web worker.