Fix boot2docker with /User mapping.

Fixes #1856

Based on #1858 from @nyaxt.