Bugfix: test whether dir/sym exists prior to create