[PATCH 4/4] programs/cmd: don't overflow internal path buffers