updated how .d files were made for bin/ which fixes the libstan dependency problem
Merge pull request #1063 from stan-dev/feature/issue-1062-make-libstan-dependencies

Fixes #1062. Updated dependencies for libstan