bug fix in rake task runner (was not taking location into account)