add a guard to prevent deleting target dirs if sbt-start-script is used
made the sbt-start-script guard broader