Allow relative path ADD within docker build

overrides #4849
Fixes #3960
Fixes #4848
ping @tianon this is just an alternative implementation, we can keep yours if you prefer :) fixing #3960, I ended up reimplementing it ^^
WIP, small fail in test, brb