hack for finding working dir