Unclosed quote for command '' exec and missing closing brackets