fix running when being symlinked.