Expand path for the given directories

Close #112