Fix typo that was currecting the wrong length
Remove print statement presumably for debugging
Merge pull request #2 from richo/features/truncate_basename

Fix typo that was currecting the wrong length