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

fix dirname evaluation in install script