Dual boot tool: Fix free space calculation (again)

Change-Id: I8f4c78025a9bfbbb9f319cf0e47bc596b700a796
Centralized dual boot environment setup

Change-Id: Id6440194c2465e55e984882e558a571ef2127db6