In chopsgen.js's toPath(), added error handling to keep the ../ levels from going past the number of available directory levels.