Bugfix when var/connect dir doesn't exist