Solves redirection to $(ERROR) in dep-factory