[#785] Allow exporting subdirs on BSD hosts

This should be safe on all hosts calling this template, but further
testing is suggested. It does fix the referenced issue #785 for OSX
hosts.