split completion script from complete flag