allow passing dir in which config files are w/ --config option in myrepo.config, and add a corresponding test case
added sample configuration file and test case to test --profile option
I guess this change should fix the issue #2 that --profile option does not work