fix IFS in detects()

latest commit d5dffd37ee
@papajoker authored