Always take PAYLOAD_DIR from the environment as other scripts now use it