My first port of call was to see if __filename would do the trick, but it didn't.