btt: make device/devno use PATH_MAX to avoid overflow