Fix #343 where the flags were inverted when checking for the http directories