Replace command line linking script with rake task