Fixed bugs in find_references

- use -l instead of -lz in ls-tree to make sure all necessary stubs are listed
- remove backslash in find_references (issues detected on Windows)