Enable to change component directory

'options.directory' parameter seems to be ignored wrongly.
In order to enable to change component directory, I modified this problem.