extended post recive hook script to include work-tree dir