Check if build and installation directory are the same. Stop execution in such a case.