Made 'themepath' parsing case insensitive

Without this, on a windows server, if the theme folder's name is 'shoestrap', it would fail.