Fixing file_exists optimizer code [ci skip]