rootfs-sandbox: Fixed some bugs

Signed-off-by: David Nyström <david.nystrom@enea.com>