Add missing export -f in rally-cli job

Function pre_test_hook must be exported
Also added trailing slash to destination directory name
to avoid possible vague errors

Change-Id: Ifaf28395dc1b669f1d20041ea2e9c886dd8a30da
Merge "Add missing export -f in rally-cli job"