base-files: add function to get binary mac from file