Fix bundle install --deployment with source blocks

Fix for #3167