Only add file handlers when running migrations from the command
line