MODULES-1232 Make sure HOME is set correctly