droplet: check string length in dpl_cwd()