Moving GPIO init to the top

If chkarduino file was not updated before the first boot, it was failing. Now fixed.