Use canonical path in backup/restore test

The existing test fails on a Mac as getAbsolutePath() resolves a symbolic link to the 'real' path.