Properly set dependencies on source directories