Time Out While Executing A Shell Script If Statement