modified installation script to support existing file backup