manage bin symlinks using a function to mutualize code