Minor improvements to basic_test.py.

- Inserting parent dir into sys.path so local development version of
  pyOCD will be preferred.
- Initing board variable.