Updated the install script to create directories recursively.