Ignore comments and single quotes when parsing commands