Attempt to protect against weird PATHs. /cc #2