replace erroneous uses of Filename.concat with join_if_relative helper