Hopefully SO has just solved the problem: 'how do I find out in which dir this script resides?'