Update path of gcode files
Add a function which checks programs on specified port