fixed vagrant dir check