fix dist files, minor fix build system, remove unncesary old patterns