Fixing issue where autowiring was throwing errors when services directory did not exist

[skip-ci]