extglob option didn't work in linux login shells; replaced with manual test for backup files