jps: streamlined api for path variables
(cherry picked from commit 89dcff8)
jps: method renamed (cherry picked from commit 56bdb52)