Fix boot2docker with /User mapping.
Fix boot2docker with /User mapping.

Fixes #1856

Based on #1858 from @nyaxt.

(cherry picked from commit e48cbb2296369869bb8d3517f6a7e769b1dc0a6f)

Conflicts:
	build/common.sh

hortonworks/kubernetes-yarn,hortonworks/kubernetes-yarn,hortonworks/kubernetes-yarn,hortonworks/kubernetes-yarn,hortonworks/kubernetes-yarn,hortonworks/kubernetes-yarn,hortonworks/kubernetes-yarn