Fixes issue with pre-existing module checking causing extra blank lines