Linux Script: Minor Bug Fix