Bugfix on empty directory (sh)