Use new functions

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
diff --git a/scripts/lcov.sh b/scripts/lcov.sh
index 2d2f42b..dd983dd 100755
--- a/scripts/lcov.sh
+++ b/scripts/lcov.sh
@@ -30,16 +30,7 @@
 
 set -eu
 
-# Project detection
-PROJECT_NAME_FILE='./scripts/project_name.txt'
-if read -r PROJECT_NAME < "$PROJECT_NAME_FILE"; then :; else
-    echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2
-    exit 1
-fi
-
-in_mbedtls_repo () {
-    test "$PROJECT_NAME" = "Mbed TLS"
-}
+. ../framework/scripts/project_detection.sh
 
 # Collect stats and build a HTML report.
 lcov_library_report () {