Using rootpath.len for safe concatenation (fix #15)