Fix bug in dumpfiles path self-detection