fixed dirname in install