Fixed getting script directory.