script for idempotent directory added