mounted partition detection fix

50116c69498cc81937d3d85d2568fdd0235ca943 broke mounted partition detection, this fixes it