Fixed issue #1 on both plugins

Changed gcode z check to both G0 and G1 for both plugins, as advised by @lawrencejohnston (thanks Lawrence!) on issue #1. Tested and working.

Lawrence's code ensures backwards compatibility with Cura versions older than 14.03.