Export TARGET_HOSTNAME before running post-scripts