in reply to Resolving correct directory path in a symlinked directory
If your scripts are executed by absolute path, $0 should contain the full path.