[provisioners] move #calculate_path to base for use elsewhere
Merge commit 'ab5c292e54529681756db0d767d0c73a0505ac2e' into shell-provisioner