Updated install script to support existing directories.