fix dirname evaluation in install script
Merge pull request #1 from jdsn/dirname-fix

fix dirname evaluation in install script
fix another occurrence of dirname
Merge pull request #2 from jdsn/dirname-fix

fix another occurrence of dirname