Added proper error message when component spec file not found