findref fix bugs and use temp file in /tmp

Fix bug with directories slipping through find,
Add some new scripts