Fixed logic for testing nr_jar variables

Fixed grep and if statements for testing if NR_JAR is set correctly.
Also added logic to tell us if both variables are correct