Fixed a bug where we weren't excluding the dist directory correctly.