Revert "Fix Errno::EISDIR"

This reverts commit 0374ffaf6035af32fdec4794dc36ac8cff84166f.
Test: fix which spec
Test: added whitespace test
Fix: whitespace