Fix bash syntax in test for file