Fix path problems when running stand alone.