Fix adding subdirectories for dart core