Fix dump and load path creation bug