Don't do mkdir -p (it done in the post-install target). Remove two redundand @dir lines.
Submitted by: bapt@