Fixes basename not defined in LatexmkStop

The bug was introduced in 8b55dcf for a fix to #111.

Fixes #113