Disallow adding mediadirs with duplicate paths