Check the project file for the REPLACE_FOLDER card. If it exists, append it's value to create the batch directory path.
        This is the directory output is written to when run in batch mode.

def _getBatchDirectory(self, projectRootDirectory):
        """
        Check the project file for the REPLACE_FOLDER card. If it exists, append it's value to create the batch directory path.
        This is the directory output is written to when run in batch mode.
        """
        # Set output directory to main directory as default
        batchDirectory = projectRootDirectory

        # Get the replace folder card
        replaceFolderCard = self.getCard('REPLACE_FOLDER')

        if replaceFolderCard:
            replaceDir = replaceFolderCard.value.strip('"')
            batchDirectory = os.path.join(batchDirectory, replaceDir)

        # Create directory if it doesn't exist
        if not os.path.isdir(batchDirectory):
            os.mkdir(batchDirectory)
            log.info('Creating directory for batch output: {0}'.format(batchDirectory))

        return batchDirectory