Expand .d directories in erlang