Fixes #379, adding directory type reference