Added check for existing spades output directory