Bug fixes in installation

Signed-off-by: Daniel Francis <dfrancis@sophilabs.com>