Add dirname so that OTP can be run from any path.

This allows the otp shell script to be run from any directory.