Handle dependencies for .cmm files properly