Support multiple directory arguments
Bugfix for file action