Move setup_file variable out of if condition