Fixed links to code for example programs

to be local and remain consistent when published to gh-pages.
Previously, as we modified the example program in master branch, the
tutorial already published to gh-pages became inadvertently inconsistent.