fixes #155: remove ".cortex" directory after building