Add check for existence of project name file

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
diff --git a/scripts/lcov.sh b/scripts/lcov.sh
index faf14f3..15b13c1 100755
--- a/scripts/lcov.sh
+++ b/scripts/lcov.sh
@@ -34,8 +34,12 @@
 PROJECT_NAME_FILE='./scripts/project_name.txt'
 
 in_mbedtls_repo () {
+    if [ ! -f $PROJECT_NAME_FILE ]; then
+        echo "$PROJECT_NAME_FILE does not exist... Exiting..."
+        exit 1
+    fi
     grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE"
- }
+}
 
 # Collect stats and build a HTML report.
 lcov_library_report () {