puavo-rest-prompt: Support dn, fix script