Improvement when root dir is read/write

Change-Id: I64e2de377ca23e1851edf1f39e3cf235790b5f26
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>