fix installing package without directory bug