Bugfix checking target folders