Removed minor warnings

Warnings were:
ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]