Check that current_path exists before stopping

Otherwise `within current_path` throws an error an exits.
Merge pull request #16 from alexdunae/test-for-current-on-stop

Check that current_path exists before stopping