[FIXED JENKINS-23359] - Added support of URL paths to multi-level choice options

The proposed change is just a hotfix. As any other file operation in the plugin, it requires additional stream handling to prevent errors and resource leaks.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>