Fixed issue with opening directories returning wrong error