detecting directories for backing up in install script