Accept the RECORD environment variable to switch record mode