Fix component directory creation