fixed backup dirs, updated logic, check for fsyncLock