updated install script to prevent duplicate copies