fixed home detection bug in Mojo (closes #559)