Install in sub-directory support.

refs #527
Merge pull request #1523 from halfdan/527-subdir-support