if else statement syntax has been corrected; cobalt directory set