tests: fix warning about undef value in tempfile()
use absolute paths in profile

~ resolves to the wrong folders in apaches shared mode.