Changed split script for adding it to pipeline
- different syntax
- also added boolean flag for checking if the file needs to be changed