Fix for checking submodules location

Closes gh-3257
Merge pull request #3258 from takluyver/i3257

Fix submodule location in setup.py
fix set_last_checkpoint when no checkpoint

closes #3260
Merge pull request #3263 from minrk/nocp

fix set_last_checkpoint when no checkpoint