fix the fragment mode

The fragment mode doesn't work right now, because the flag is read before its evaluated.
`new File("/home")`: idem