Fixed the issue of not creating /usr/local/lib/selenium and added a cleanup function to remove the tmp subdirectory in the user's home directory.