diff --git a/Inspection/Html/static_text.sh b/Inspection/Html/static_text.sh
index bef942f..670014c 100644
--- a/Inspection/Html/static_text.sh
+++ b/Inspection/Html/static_text.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start static text inspection"
diff --git a/Inspection/Html/syntax.sh b/Inspection/Html/syntax.sh
index 7e67909..e61eda6 100644
--- a/Inspection/Html/syntax.sh
+++ b/Inspection/Html/syntax.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start html syntax inspection"
diff --git a/Inspection/Html/tags.sh b/Inspection/Html/tags.sh
index f7e42c1..2271199 100755
--- a/Inspection/Html/tags.sh
+++ b/Inspection/Html/tags.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start html tags inspection"
diff --git a/Inspection/Js/security.sh b/Inspection/Js/security.sh
index 8cd3810..2522fab 100755
--- a/Inspection/Js/security.sh
+++ b/Inspection/Js/security.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start js security inspection"
diff --git a/Inspection/Js/style.sh b/Inspection/Js/style.sh
index ab5f5ad..3d08af2 100755
--- a/Inspection/Js/style.sh
+++ b/Inspection/Js/style.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start js style inspection"
diff --git a/Inspection/Json/linting.sh b/Inspection/Json/linting.sh
index 177ae40..1cfba8b 100755
--- a/Inspection/Json/linting.sh
+++ b/Inspection/Json/linting.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start json linting inspection"
diff --git a/Inspection/Php/linting.sh b/Inspection/Php/linting.sh
index 52bcdba..e601ea9 100755
--- a/Inspection/Php/linting.sh
+++ b/Inspection/Php/linting.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start php linting inspection"
diff --git a/Inspection/Php/security.sh b/Inspection/Php/security.sh
index b58a1ad..381821e 100755
--- a/Inspection/Php/security.sh
+++ b/Inspection/Php/security.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start php security inspection"
diff --git a/Inspection/Php/stats.sh b/Inspection/Php/stats.sh
index dae0ab0..8e07be8 100755
--- a/Inspection/Php/stats.sh
+++ b/Inspection/Php/stats.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start php stats inspection"
diff --git a/Inspection/Php/style.sh b/Inspection/Php/style.sh
index 18d2041..1823df9 100755
--- a/Inspection/Php/style.sh
+++ b/Inspection/Php/style.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start php style inspection"
diff --git a/Inspection/Php/tests.sh b/Inspection/Php/tests.sh
index c02aeed..adc15cd 100755
--- a/Inspection/Php/tests.sh
+++ b/Inspection/Php/tests.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
echo "#################################################"
echo "Start php unit tests inspection"
diff --git a/Inspection/Sql/performance.sh b/Inspection/Sql/performance.sh
index 2d4bcc7..90817e6 100755
--- a/Inspection/Sql/performance.sh
+++ b/Inspection/Sql/performance.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
# Mysql required with query logging
# sudo apt-get install percona-toolkit
diff --git a/Inspection/inspect.sh b/Inspection/inspect.sh
index 65c4832..be03f5e 100755
--- a/Inspection/inspect.sh
+++ b/Inspection/inspect.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Include config
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
# Setup database
echo "#################################################"
diff --git a/php.sh b/php.sh
index 3128804..1264785 100644
--- a/php.sh
+++ b/php.sh
@@ -2,7 +2,7 @@
# Include config
BUILD_PATH="$(dirname "$(readlink -f "$0")")"
-. "$BUILD_PATH/config.sh"
+. "${BUILD_PATH}/config.sh"
if [ $# -eq 0 ]; then
echo "No parameters provided."
@@ -12,5 +12,10 @@ fi
INSPECTION_PATH="$1"
OUTPUT_PATH="$2"
+mkdir -p ${OUTPUT_PATH}
+mkdir -p ${OUTPUT_PATH}/coverage
+mkdir -p ${OUTPUT_PATH}/phpunit
+mkdir -p ${OUTPUT_PATH}/metrics
+
# Run inspection
. ${BUILD_PATH}/Inspection/inspect.sh