diff --git a/tools/cleanup-host b/tools/cleanup-host
index c38dace439..3cc4ae23d5 100755
--- a/tools/cleanup-host
+++ b/tools/cleanup-host
@@ -1,10 +1,9 @@
 #!/bin/bash
 
-. tools/validate-docker-execute
-
 # Move to top level directory
 REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
 cd "$(dirname "$REAL_PATH")/.."
+. tools/validate-docker-execute
 
 # Spawning the neutron-agents container leaves artifacts on the host.
 # This script removes these artifacts.