Use sane variables instead of full paths

Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
Add new test case

This is based on the volatile-test provided by John Stultz.
In this code we use a signal handler and "regenerate" the
data that has been purged.

Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>