Fixes joelthelion/autojump#335
Merge pull request #336 from erdiaker/issue_335

Fix for Issue 335