Fixed subdir issue for extensions