added option to handle repos case sensitive

To leave it to the user/admin if the repos should be handled case senstive or not ( #2687 ), i added a config option and a stripped down version of parameterize code.