add an argument to define master

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
allow makedir to ignore some errors

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>