detect directories properly
Merge branch 'master' of https://github.com/ifly7charlie/XCSoar-Kobo-Build