Programming and Scripting :: cd into dirname of linked script




original here.