Improvement for the libcan subfolder makefile handling