Fix OSX build; remove all remaining mpvcore references
old-makefile: fix mpvcore references and the DIRS variable
command: better check whether file duration is available