monster multiliner for a script to discover where it lives that works even for symlinked scripts (and dirs as well)