Remove code duplication in Build command

Going through Code Climate's review of Jekyll and refactoring to remove duplication and reduce complexity.

This just removes duplication.