Fix syntax
Create target series directory if necessary
Use proper function
Remove the queue if the queue series dir exists