Possible fix for the no such dir problem