check if application doc dirs exist

close #571
link source/doc into build dir

this makes the names predictable, if not as nice as one would like. close #578