Fix testsuite; fix dist script; fix gitignore
Fix path search to simply exclude .., because symlinks will otherwise not be resolved properly