added missing cd and replace one path with a variable