Add linked dirs to deploy and fix bug