Fixed a bug that caused the dependencies directories not to be created