improved folder detection
Merge branch 'master' of https://github.com/Mattze96/miniblog