Fix replacement variable when fixDirLevel is false

Looks like this was just a refactoring bug; fixes #8.