Add check that dist directory isn't empty