Fix: Don't explode on directory traversal (fixes #1452)