Fix bug with basescript dir.