Fixes exist test for flag-file