Add missing export -f post_test_hook in rally-cli

Also some minor changes

Change-Id: Ic0752941c199888b4d80287cd08681605c83d8c0
Merge "Add missing export -f post_test_hook in rally-cli"