Use $(OutDir) instead of hardcoding the directory name

This is how it is done in the other projects.
Merge pull request #1131 from mstorsjo/avoid-hardcoding-paths

Use $(OutDir) instead of hardcoding the directory name