root dir handling for debug server