Fixed check for using AccountFile